define (require,exports,module)->
	MSurvey = require 'model/survey'
	VSurvey = require 'view/survey'
	m = new MSurvey
	v = new VSurvey
	SurveyListController = Backbone.View.extend
		initialize:()->
			console.log 'hello'
			Backbone.on 'event_load_list_success',(data)->
				v.renderList data
			Backbone.on 'event_load_list',(option)->
				m.load_list option
			Backbone.on 'event_delete',(survey_id)->
				m.delete_survey survey_id
			Backbone.on 'event_delete_success',(data)->

			m.load_list()